package com.mingyuan.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mingyuan.student.entitys.User;
import com.mingyuan.user.dao.UserMapper;

@Service
public class UserService {
	
	@Autowired
	private UserMapper userMapper;
	public Integer addUser(User user) {
		return userMapper.addUser(user);
	}
	public User findUserByName(String name) {
		return userMapper.findUserByName(name);
	}
	

}
